#ifndef _WX_GENERIC_FDREPDLG_H_
#define _WX_GENERIC_FDREPDLG_H_

class wxCheckBox;
class wxRadioBox;
class wxTextCtrl;

// ----------------------------------------------------------------------------
// wxGenericFindReplaceDialog: dialog for searching / replacing text
// ----------------------------------------------------------------------------

class wxGenericFindReplaceDialog : public wxFindReplaceDialogBase {
  public:
    wxGenericFindReplaceDialog() { Init(); }

    wxGenericFindReplaceDialog( wxWindow *parent,
                                wxFindReplaceData *data,
                                const wxString& title,
                                int style = 0 ) {
      Init();
      ( void )Create( parent, data, title, style );
    }

    bool Create( wxWindow *parent,
                 wxFindReplaceData *data,
                 const wxString& title,
                 int style = 0 );

  protected:
    void Init();

    void SendEvent( const wxEventType& evtType );

    void OnFind( wxCommandEvent& event );
    void OnReplace( wxCommandEvent& event );
    void OnReplaceAll( wxCommandEvent& event );
    void OnCancel( wxCommandEvent& event );

    void OnUpdateFindUI( wxUpdateUIEvent& event );

    void OnCloseWindow( wxCloseEvent& event );

    wxCheckBox *m_chkCase,
               *m_chkWord;

    wxRadioBox *m_radioDir;

    wxTextCtrl *m_textFind,
               *m_textRepl;

  private:
    DECLARE_DYNAMIC_CLASS( wxGenericFindReplaceDialog )

    DECLARE_EVENT_TABLE()
};

#endif // _WX_GENERIC_FDREPDLG_H_
